import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/yuelao/user/getInfoList',
    method: 'get',
    params: query
  })
}

// 上架下架
export function updateUserInfo({openid, type, str}) {
  return request({
    url: `/yuelao/user/updateUserInfo/${openid}/${type}${str}`,
    method: 'get',
    // params: query
  })
}

// 修改性别
export function changeSex(query) {
  return request({
    url: `/yuelao/console/updateUserInfoGender`,
    method: 'get',
    params: query
  })
}

// 取消推荐
export function delUserIdFromSuggest({openid}) {
  return request({
    url: `/yuelao/delUserIdFromSuggest?userId=${openid}`,
    method: 'get',
    // params: query
  })
}

// 增加推荐
export function pullUserIdToSuggest({openid}) {
  return request({
    url: `/yuelao/pullUserIdToSuggest?userId=${openid}`,
    method: 'get',
    // params: query
  })
}
